package com.xdf.whiteaccount.dao;

import org.springframework.stereotype.Repository;
import java.util.List;
import com.xdf.whiteaccount.entity.GjrkbilldraftCp;
import com.xdf.whiteaccount.utils.Example;
import org.apache.ibatis.annotations.Param;

/**
 * @Description : 由代码生成器生成
 * @Author : chanchaw
 * @Date :  2025-3-24 9:37:12
 */
@Repository
public interface GjrkbilldraftCpMapper {
    int insert(GjrkbilldraftCp record);

    int insertSelective(GjrkbilldraftCp record);

    int multiInsert(List<GjrkbilldraftCp> list);

    int updateByPrimaryKey(GjrkbilldraftCp record);

    int updateByPrimaryKeySelective(GjrkbilldraftCp record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer B_ItemID);
    // 根据主键查询
    GjrkbilldraftCp selectByPrimaryKey(Integer B_ItemID);

    List<GjrkbilldraftCp> selectAll();

    int save(GjrkbilldraftCp record);
    int multiSave(List<GjrkbilldraftCp> list);

    //================= 下面是 Example 代码 ==================
    List<GjrkbilldraftCp> selectByExample(@Param("example") Example example);
    int updateByExampleSelective(@Param("record") GjrkbilldraftCp record,@Param("example") Example example);
    int insertByExampleSelective(@Param("record") GjrkbilldraftCp record,@Param("example") Example example);
    int deleteByExample(@Param("example") Example example);

    GjrkbilldraftCp getNext(Integer id);
    GjrkbilldraftCp getPrev(Integer id);
    GjrkbilldraftCp getFirst();
    GjrkbilldraftCp getLast();

    //=================以上是自动生成的代码，自定义代码请写在下面==================

    List<GjrkbilldraftCp> selectByBId(Long id);
}